import request from '@/utils/request'
//上传协会信息
export function introduction() {
  return request({
    url: 'introduction/list',
    method: 'get',
  })
}
//更新协会信息
export function societyUpdate(data) {
  return request({
    url: 'introduction/update',
    method: 'post',
    data:data
  })
}
//上传文章接口
export function addArticle(data) {
  return request({
    url: 'article/addArticle',
    method: 'post',
    data:data
  })
}
//文章查询
export function articleByAid(data) {
  return request({
    url: 'article/articleByAid',
    method: 'post',
    data:data
  })
}
//获取所有关键字
export function getKeyword() {
  return request({
    url: 'article/getKeyword',
    method: 'get',
  })
}
//文章列表
export function list(data) {
  return request({
    url: 'article/list',
    method: 'post',
    data:data
  })
}
//修改文章
export function articleEdit(data) {
  return request({
    url: 'article/articleByAid',
    method: 'post',
    data:data
  })
}
//删除文章
export function delArticle(aid) {
  return request({
    url: 'article/del/'+aid,
    method: 'get',
  })
}
//动态管理
export function trendsList(data) {
  return request({
    url: 'trends/pageList',
    method: 'post',
    data:data
  })
}
//动态回显
export function getTrends(tid) {
  return request({
    url: 'trends/trendsDetail/'+tid,
    method: 'get',
  })
}
//审核
export function examine(data) {
  return request({
    url: 'trends/examine',
    method: 'post',
    data:data
  })
}
//意见列表
export function opinionList(data) {
  return request({
    url: 'opinion/list',
    method: 'post',
    data:data
  })
}
//已读意见
export function readOpinion(oid) {
  return request({
    url: 'opinion/read/'+oid,
    method: 'get',
  })
}
//已查看意见
export function checkOpinion(oid) {
  return request({
    url: 'opinion/check/'+oid,
    method: 'get',
  })
}
//发布活动
export function activityUp(data) {
  return request({
    url: 'activity/release',
    method: 'post',
    data:data
  })
}
//活动列表
export function pageList(data) {
  return request({
    url: 'activity/pageList',
    method: 'post',
    data:data
  })
}
//编辑活动
export function editActivity(data) {
  return request({
    url: 'activity/getByAid/'+data,
    method: 'get',
  })
}
//活动提前
export function updateStatus(data) {
  return request({
    url: 'activity/updateStatus',
    method: 'post',
    data:data
  })
}
//人员列表
export function getMemberList(data) {
  return request({
    url: 'activity/getMemberList',
    method: 'post',
    data:data
  })
}
//友好协会列表
export function friendshipList(data) {
  return request({
    url: 'friendship/list',
    method: 'post',
    data:data
  })
}
//新增友好协会
export function saveFriendship(data) {
  return request({
    url: 'friendship/saveFriendship',
    method: 'post',
    data:data
  })
}
//编辑友好协会
export function getByFid(fid) {
  return request({
    url: 'friendship/getByFid/'+fid,
    method: 'get',
  })
}
//友好协会删除
export function delByFid(fid) {
  return request({
    url: 'friendship/del/'+fid,
    method: 'get',
  })
}
//友好协会排序
export function friSort(data) {
  return request({
    url: 'friendship/sort',
    method: 'post',
    data:data
  })
}
//动态数量
export function getStatusNum() {
  return request({
    url: 'trends/getStatusNum',
    method: 'get',
  })
}
//反馈数量
export function view() {
  return request({
    url: 'opinion/view',
    method: 'get',
  })
}